$(() => {
    $('#login_form').on('submit', (e) => {
        e.preventDefault()
        const data = $('#login_form').serialize()
        console.log(data);
        $.ajax({
            type: 'POST',
            url: BigNew.user_login,
            data,
            success: (res) => {
                console.log(res)
                localStorage.setItem('bigNews', res.token)
                window.location.href = 'index.html'
            },
        })
    })

})